package com.seraph.zys.dao.impl;

import com.seraph.bi.suite.support.domain.pagination.PageBox;
import com.seraph.bi.suite.support.domain.pagination.PageObject;
import com.seraph.zys.dao.PcTreatmentManageFeeDAO;
import com.seraph.zys.dao.domain.PcTreatmentManageFee;
import com.seraph.zys.dao.domain.PcTreatmentManageFeeExample;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

@Repository
public class PcTreatmentManageFeeDAOImpl extends SqlMapClientDaoSupport implements PcTreatmentManageFeeDAO {

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PcTreatmentManageFeeDAOImpl() {
        super();
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public Integer insert(PcTreatmentManageFee record) {
        Object newKey = getSqlMapClientTemplate().insert("pc_treatment_manage_fee.abatorgenerated_insert", record);
        return (Integer) newKey;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKey(PcTreatmentManageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_manage_fee.abatorgenerated_updateByPrimaryKey", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKeySelective(PcTreatmentManageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_manage_fee.abatorgenerated_updateByPrimaryKeySelective", record);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public List selectByExample(PcTreatmentManageFeeExample example, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        List list = getSqlMapClientTemplate().queryForList("pc_treatment_manage_fee.abatorgenerated_selectByExample", parms);
        return list;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public List selectByExample(PcTreatmentManageFeeExample example) {
        return selectByExample(example, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PcTreatmentManageFee selectByPrimaryKey(Integer id) {
        PcTreatmentManageFee key = new PcTreatmentManageFee();
        key.setId(id);
        PcTreatmentManageFee record = (PcTreatmentManageFee) getSqlMapClientTemplate().queryForObject("pc_treatment_manage_fee.abatorgenerated_selectByPrimaryKey", key);
        return record;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int deleteByExample(PcTreatmentManageFeeExample example) {
        int rows = getSqlMapClientTemplate().delete("pc_treatment_manage_fee.abatorgenerated_deleteByExample", getExampleParms(example));
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int deleteByPrimaryKey(Integer id) {
        PcTreatmentManageFee key = new PcTreatmentManageFee();
        key.setId(id);
        int rows = getSqlMapClientTemplate().delete("pc_treatment_manage_fee.abatorgenerated_deleteByPrimaryKey", key);
        return rows;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getIDExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getId_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NULL", "Y");
            } else {
                parms.put("AND_ID_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_ID_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_EQUALS", "Y");
            } else {
                parms.put("AND_ID_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ID_NOT_EQUALS", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GT", "Y");
            } else {
                parms.put("AND_ID_GT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_GE", "Y");
            } else {
                parms.put("AND_ID_GE", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LT", "Y");
            } else {
                parms.put("AND_ID_LT", "Y");
            }
            parms.put("id", example.getId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ID_LE", "Y");
            } else {
                parms.put("AND_ID_LE", "Y");
            }
            parms.put("id", example.getId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFISCAL_YEARExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFiscalYear_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_NULL", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_NOT_EQUALS", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_GE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_GE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LT", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LT", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FISCAL_YEAR_LE", "Y");
            } else {
                parms.put("AND_FISCAL_YEAR_LE", "Y");
            }
            parms.put("fiscalYear", example.getFiscalYear());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFROM_AREAExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFromArea_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_NULL", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FROM_AREA_NOT_EQUALS", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GT", "Y");
            } else {
                parms.put("AND_FROM_AREA_GT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_GE", "Y");
            } else {
                parms.put("AND_FROM_AREA_GE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LT", "Y");
            } else {
                parms.put("AND_FROM_AREA_LT", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FROM_AREA_LIKE", "Y");
            } else {
                parms.put("AND_FROM_AREA_LIKE", "Y");
            }
            parms.put("fromArea", example.getFromArea());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSORT_IDExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSortId_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_NULL", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SORT_ID_NOT_EQUALS", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GT", "Y");
            } else {
                parms.put("AND_SORT_ID_GT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_GE", "Y");
            } else {
                parms.put("AND_SORT_ID_GE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LT", "Y");
            } else {
                parms.put("AND_SORT_ID_LT", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SORT_ID_LE", "Y");
            } else {
                parms.put("AND_SORT_ID_LE", "Y");
            }
            parms.put("sortId", example.getSortId());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getPATIENT_NAMEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getPatientName_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NOT_NULL", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_EQUALS", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_NOT_EQUALS", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_GT", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_GT", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_GE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_GE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LT", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LT", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LIKE:
            if (example.isCombineTypeOr()) {
                parms.put("OR_PATIENT_NAME_LIKE", "Y");
            } else {
                parms.put("AND_PATIENT_NAME_LIKE", "Y");
            }
            parms.put("patientName", example.getPatientName());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getMANAGE_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getManageProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_EQUALS", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_GT", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_GE", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_LT", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_MANAGE_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_MANAGE_PROPORTION_LE", "Y");
            }
            parms.put("manageProportion", example.getManageProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getCHEST_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getChestFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_NULL", "Y");
            } else {
                parms.put("AND_CHEST_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_CHEST_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_CHEST_FEE_EQUALS", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_CHEST_FEE_NOT_EQUALS", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_GT", "Y");
            } else {
                parms.put("AND_CHEST_FEE_GT", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_GE", "Y");
            } else {
                parms.put("AND_CHEST_FEE_GE", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_LT", "Y");
            } else {
                parms.put("AND_CHEST_FEE_LT", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_CHEST_FEE_LE", "Y");
            } else {
                parms.put("AND_CHEST_FEE_LE", "Y");
            }
            parms.put("chestFee", example.getChestFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFIR_DRUG_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFirDrugProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_EQUALS", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_GT", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_GE", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_LT", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_FIR_DRUG_PROPORTION_LE", "Y");
            }
            parms.put("firDrugProportion", example.getFirDrugProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getFIR_DRUG_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getFirDrugFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_NULL", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_EQUALS", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_NOT_EQUALS", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_GT", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_GT", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_GE", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_GE", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_LT", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_LT", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_FIR_DRUG_FEE_LE", "Y");
            } else {
                parms.put("AND_FIR_DRUG_FEE_LE", "Y");
            }
            parms.put("firDrugFee", example.getFirDrugFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSEC_DRUG_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSecDrugProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_EQUALS", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_GT", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_GE", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_LT", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_SEC_DRUG_PROPORTION_LE", "Y");
            }
            parms.put("secDrugProportion", example.getSecDrugProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSEC_DRUG_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSecDrugFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_NULL", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_EQUALS", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_NOT_EQUALS", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_GT", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_GT", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_GE", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_GE", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_LT", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_LT", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SEC_DRUG_FEE_LE", "Y");
            } else {
                parms.put("AND_SEC_DRUG_FEE_LE", "Y");
            }
            parms.put("secDrugFee", example.getSecDrugFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getHOSPITAL_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getHospitalProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_EQUALS", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_GT", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_GE", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_LT", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_HOSPITAL_PROPORTION_LE", "Y");
            }
            parms.put("hospitalProportion", example.getHospitalProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getHOSPITAL_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getHospitalFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_NULL", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_EQUALS", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_NOT_EQUALS", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_GT", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_GT", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_GE", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_GE", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_LT", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_LT", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_HOSPITAL_FEE_LE", "Y");
            } else {
                parms.put("AND_HOSPITAL_FEE_LE", "Y");
            }
            parms.put("hospitalFee", example.getHospitalFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSIDE_EFFECTS_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSideEffectsProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_EQUALS", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_GT", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_GE", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_LT", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_PROPORTION_LE", "Y");
            }
            parms.put("sideEffectsProportion", example.getSideEffectsProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getSIDE_EFFECTS_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getSideEffectsFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_NULL", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_EQUALS", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_NOT_EQUALS", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_GT", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_GT", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_GE", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_GE", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_LT", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_LT", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_SIDE_EFFECTS_FEE_LE", "Y");
            } else {
                parms.put("AND_SIDE_EFFECTS_FEE_LE", "Y");
            }
            parms.put("sideEffectsFee", example.getSideEffectsFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getOTHER_TREAT_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getOtherTreatProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_EQUALS", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_GT", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_GE", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_LT", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_PROPORTION_LE", "Y");
            }
            parms.put("otherTreatProportion", example.getOtherTreatProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getOTHER_TREAT_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getOtherTreatFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_NULL", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_EQUALS", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_NOT_EQUALS", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_GT", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_GT", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_GE", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_GE", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_LT", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_LT", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_OTHER_TREAT_FEE_LE", "Y");
            } else {
                parms.put("AND_OTHER_TREAT_FEE_LE", "Y");
            }
            parms.put("otherTreatFee", example.getOtherTreatFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getALLOWANCE_PRICE_PROPORTIONExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAllowancePriceProportion_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_NULL", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_NOT_NULL", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_EQUALS", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_EQUALS", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_NOT_EQUALS", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_GT", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_GT", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_GE", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_GE", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_LT", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_LT", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_PROPORTION_LE", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_PROPORTION_LE", "Y");
            }
            parms.put("allowancePriceProportion", example.getAllowancePriceProportion());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getALLOWANCE_PRICE_FEEExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getAllowancePriceFee_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_NULL", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_NOT_NULL", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_EQUALS", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_EQUALS", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_NOT_EQUALS", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_GT", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_GT", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_GE", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_GE", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_LT", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_LT", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_ALLOWANCE_PRICE_FEE_LE", "Y");
            } else {
                parms.put("AND_ALLOWANCE_PRICE_FEE_LE", "Y");
            }
            parms.put("allowancePriceFee", example.getAllowancePriceFee());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getTOTALExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        switch (example.getTotal_Indicator()) {
        case PcTreatmentManageFeeExample.EXAMPLE_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NULL", "Y");
            } else {
                parms.put("AND_TOTAL_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_NULL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NOT_NULL", "Y");
            } else {
                parms.put("AND_TOTAL_NOT_NULL", "Y");
            }
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_EQUALS", "Y");
            } else {
                parms.put("AND_TOTAL_EQUALS", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_NOT_EQUALS:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_NOT_EQUALS", "Y");
            } else {
                parms.put("AND_TOTAL_NOT_EQUALS", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_GT", "Y");
            } else {
                parms.put("AND_TOTAL_GT", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_GREATER_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_GE", "Y");
            } else {
                parms.put("AND_TOTAL_GE", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_LT", "Y");
            } else {
                parms.put("AND_TOTAL_LT", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        case PcTreatmentManageFeeExample.EXAMPLE_LESS_THAN_OR_EQUAL:
            if (example.isCombineTypeOr()) {
                parms.put("OR_TOTAL_LE", "Y");
            } else {
                parms.put("AND_TOTAL_LE", "Y");
            }
            parms.put("total", example.getTotal());
            break;
        }
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    private Map getExampleParms(PcTreatmentManageFeeExample example) {
        Map parms = new HashMap();
        parms.putAll(getIDExampleParms(example));
        parms.putAll(getFISCAL_YEARExampleParms(example));
        parms.putAll(getFROM_AREAExampleParms(example));
        parms.putAll(getSORT_IDExampleParms(example));
        parms.putAll(getPATIENT_NAMEExampleParms(example));
        parms.putAll(getMANAGE_PROPORTIONExampleParms(example));
        parms.putAll(getCHEST_FEEExampleParms(example));
        parms.putAll(getFIR_DRUG_PROPORTIONExampleParms(example));
        parms.putAll(getFIR_DRUG_FEEExampleParms(example));
        parms.putAll(getSEC_DRUG_PROPORTIONExampleParms(example));
        parms.putAll(getSEC_DRUG_FEEExampleParms(example));
        parms.putAll(getHOSPITAL_PROPORTIONExampleParms(example));
        parms.putAll(getHOSPITAL_FEEExampleParms(example));
        parms.putAll(getSIDE_EFFECTS_PROPORTIONExampleParms(example));
        parms.putAll(getSIDE_EFFECTS_FEEExampleParms(example));
        parms.putAll(getOTHER_TREAT_PROPORTIONExampleParms(example));
        parms.putAll(getOTHER_TREAT_FEEExampleParms(example));
        parms.putAll(getALLOWANCE_PRICE_PROPORTIONExampleParms(example));
        parms.putAll(getALLOWANCE_PRICE_FEEExampleParms(example));
        parms.putAll(getTOTALExampleParms(example));
        return parms;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int selectCountByExample(PcTreatmentManageFeeExample example) {
        Map parms = getExampleParms(example);
        int count = ((Integer)getSqlMapClientTemplate().queryForObject("pc_treatment_manage_fee.abatorgenerated_selectCountByExample", parms)).intValue();
        return count;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PageBox selectByExampleWithPaging(PcTreatmentManageFeeExample example, int pageSize, int pageNum, String orderByClause) {
        Map parms = getExampleParms(example);
        if (orderByClause != null) {
            parms.put("ABATOR_ORDER_BY_CLAUSE", orderByClause);
        }
        PageBox pageBox = new PageBox();
        PageObject pageObject = new PageObject();
        pageObject.setPageSize(pageSize);
        pageObject.setPageIndex(pageNum);
        int itemAmount = selectCountByExample(example);
        pageObject.setItemAmount(itemAmount);
        List pageList = null;
        if (pageObject.getBeginIndex() <= pageObject.getItemAmount()) {
            pageList = (getSqlMapClientTemplate().queryForList("pc_treatment_manage_fee.abatorgenerated_selectByExample", parms, pageObject.getBeginIndex() - 1, pageSize));
        }
        pageBox.setPageObject(pageObject);
        pageBox.setPageList(pageList);
        return pageBox;
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public PageBox selectByExampleWithPaging(PcTreatmentManageFeeExample example, int pageSize, int pageNum) {
        return selectByExampleWithPaging(example, pageSize, pageNum, null);
    }

    /**
     * This method was generated by Abator for iBATIS.
     * This method corresponds to the database table pc_treatment_manage_fee
     *
     * @abatorgenerated Tue Apr 17 10:39:40 CST 2012
     */
    public int updateByPrimaryKeyForCgs(PcTreatmentManageFee record) {
        int rows = getSqlMapClientTemplate().update("pc_treatment_manage_fee.abatorgenerated_updateByPrimaryKeyForCgs", record);
        return rows;
    }
}